package com.liming.common.pojo.vo.coupon.web;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.liming.common.pojo.vo.coupon.BaseCouponVO;
import com.liming.common.serializer.CentToYuanSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * @author liming
 * @date 2025/1/18
 */
@Data
@Schema(description = "优惠券VO")
@EqualsAndHashCode(callSuper = true)
public class CouponVO extends BaseCouponVO implements Serializable {

    @Schema(description = "优惠券折扣值（以分为单位，整数型）")
    @JsonSerialize(using = CentToYuanSerializer.class)
    private Integer discountAmount;

    @Schema(description = "满减券使用门槛（以分为单位，整数型）")
    @JsonSerialize(using = CentToYuanSerializer.class)
    private Integer minPurchaseAmount;
}
